package com.ymttest.database.sqlwapper;


import java.util.List;

import com.ymt.core.tool.Logger;
import com.ymt.database.SqlManager;
import com.ymttest.database.model.YmtFundStrategy;

/************************************************************************************
 * @File name : YmtProductsIWapper.java
 * @Author : 徐洁伟
 * @Date : 2016年6月28日
 * @Copyright : 洋码头
 * 商品合库 新库
 ************************************************************************************/
public class YmtFundStrategyWapper {
	SqlManager manage;

	public YmtFundStrategyWapper() {
		manage = new SqlManager("ymtfp");
	}

	//查询
	public List<YmtFundStrategy> selectstrategy(String strategyId) throws InterruptedException {
	    @SuppressWarnings("unchecked")
	    List<YmtFundStrategy>  strategylist = manage.getSelectResults(
	            "com.ymttest.database.mapping.YmtFPMapper.selectstrategy", strategyId);
	    manage.commit();
	    return strategylist;
	}
	

	public static void main(String args[]) {
	    try {
	         
	    	YmtFundStrategyWapper ymtFundStrategyWapper = new YmtFundStrategyWapper();
	                 

	        List<YmtFundStrategy> rm = ymtFundStrategyWapper.selectstrategy("f35ac926-6659-48ff-b066-7708607a2522");
	        
	        Logger.debug(rm.get(0).getStrategyId());
	         
	    } catch (InterruptedException e) {
	        e.printStackTrace();
	    }
	}
	
}
